import React from 'react';
export default class Book extends React.Component{
    constructor(props){
        super();
        if(props.fill===undefined||props.fill===""){
            this.state={
                fill:"#5393eb"
            }
        }
        else{
            this.state={
                fill:props.fill
            }
        }
        
    }
    UNSAFE_componentWillReceiveProps(prop){
        if(prop.fill===undefined||prop.fill===""){
            this.setState({
                    fill:"#5393eb"
                }
            )
        }
        else{
            this.setState({
                fill:prop.fill
            })
        }
    }
    render(){
        return(
            <svg  fill={this.state.fill} xmlns="http://www.w3.org/2000/svg" width="36.883" height="40.746" viewBox="0 0 36.883 40.746">
            <g id="题库_未选中_" data-name="题库（未选中）" transform="translate(0 0)">
                <path id="路径_955" data-name="路径 955" className="cls-1" d="M82.107,10.218H52.35A3.624,3.624,0,0,1,49,6.376V4.026A3.643,3.643,0,0,1,52.368.164H82.143A1.925,1.925,0,0,1,83.921,2.2V8.136a1.964,1.964,0,0,1-1.813,2.082ZM52.368,2.565a1.378,1.378,0,0,0-1.273,1.461v2.35A1.359,1.359,0,0,0,52.35,7.817H81.829V2.565H52.368Z" transform="translate(-48.991 -0.164)"/>
                <path  id="路径_956" data-name="路径 956" className="cls-1" d="M82.8,199.286H51.454a2.767,2.767,0,0,1-2.768-2.759V165.105h2.129v31.421a.638.638,0,0,0,.639.637H82.8a.638.638,0,0,0,.639-.637V169.233a.638.638,0,0,0-.639-.637H78.087v-2.123H82.8a2.767,2.767,0,0,1,2.768,2.759v27.293a2.767,2.767,0,0,1-2.768,2.759Z" transform="translate(-48.686 -158.54)"/>
                <path  id="路径_957" data-name="路径 957" className="cls-1" d="M251.332,440.384H231.915a1.223,1.223,0,1,1,0-2.445h19.418a1.223,1.223,0,1,1,0,2.445Zm-4.65,6.284h-14.9a1.09,1.09,0,0,1-1.087-1.087v-.271a1.09,1.09,0,0,1,1.087-1.087h14.9a1.09,1.09,0,0,1,1.087,1.087v.271A1.09,1.09,0,0,1,246.682,446.668Z" transform="translate(-223.447 -420.514)"/>
            </g>
            </svg>
        );
    }
    
}